package com.wzh.common.exception;
//自定义异常类枚举
public enum BizCodeEnume {
    UNKNOW_EXCEPTION(10000, "系统未知异常"),
    VAILD_EXCEPTION(10001, "参数格式验证失败"),
    UP_PRODUCT_EXCEPTION(11001, "商品上架错误"),
    SMS_REPEAT_EXCEPTION(12001, "验证码请求频繁，请稍后再试"),
    USER_EXIST_EXCEPTION(13001, "用户名已存在"),
    PHONE_EXIST_EXCEPTION(13002, "手机号码已存在"),
    LOGINACCT_PWD_EXCEPTION(14001, "账号密码错误");

    private String msg;
    private int code;

    BizCodeEnume(int code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }
}
